package com.xunqi.crm.repository;

import com.xunqi.crm.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {

    public User findByUsrNameAndUsrPassword(String usrName, String usrPassword);

    // 根据用户名查询用户
    public User findUserByUsrName(String usrName);
}
